-- card: 21011 from stack: in.1 -- bmap block id: 0 -- flags: 0000 -- background id: 3837 -- name: sortItems -- part 1 (button) -- low flags: 00 -- high flags: A003 -- rect: left=82 top=302 right=324 bottom=182 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Install ----- HyperTalk script ----- on mouseUp if the optionkey is down then pass mouseup put installres(XFCN,sortItems) into it if it is empty then play oops else answer it end mouseUp -- part contents for background part 10 ----- text ----- 10 -- part contents for background part 5 ----- text ----- sortItems -- part contents for background part 6 ----- text ----- This will sort the items in a HyperCard field. As you know an item is any number of characters separated by commas. This XFCN will put them into ascending or descending order, and optionally put each item on a separate line. Marvin G. Nelsen 20462 Castle Rock Cir. Huntington Beach CA. 92646 GENIE: M.NELSEN -- part contents for background part 7 ----- text ----- Syntax: SortItems(input, , ) input: Any HyperCard Container Lines: "true" means put each sorted item into a separate line. "false" means put all sorted items into one line. (Default) Descending: "DE" forces the sort to be in descending order. The function returns a sorted list. Example: put SortItems(input,true) into output output may be the same container as input. The sort is Case Insensitive.